/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlEditType.java
 *
 * Created on 14 ม.ค. 2553, 11:58:52
 */

package warehouse;

/**
 *
 * @author Administrator
 */
public class PnlEditType extends javax.swing.JPanel {

    /** Creates new form PnlEditType */
    public PnlEditType() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlHeadEditType = new javax.swing.JPanel();
        lblHeadEditType = new javax.swing.JLabel();
        btnTypeEditSave = new javax.swing.JButton();
        btnTypeEditCancel = new javax.swing.JButton();
        btnTypeEditDel = new javax.swing.JButton();
        btnTypePrint = new javax.swing.JButton();
        PnlEditType = new javax.swing.JPanel();
        lblTyCode = new javax.swing.JLabel();
        txtTyCode = new javax.swing.JTextField();
        lblTyName = new javax.swing.JLabel();
        txtTyName = new javax.swing.JTextField();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setPreferredSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlHeadEditType.setBackground(new java.awt.Color(204, 255, 204));
        pnlHeadEditType.setPreferredSize(new java.awt.Dimension(700, 80));

        lblHeadEditType.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
        lblHeadEditType.setText("ประเภทสินค้า");

        btnTypeEditSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/save_30x30.gif"))); // NOI18N

        btnTypeEditCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N

        btnTypeEditDel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/del_30x30.gif"))); // NOI18N

        btnTypePrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnTypePrint.setMaximumSize(new java.awt.Dimension(40, 40));
        btnTypePrint.setMinimumSize(new java.awt.Dimension(40, 40));
        btnTypePrint.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout pnlHeadEditTypeLayout = new javax.swing.GroupLayout(pnlHeadEditType);
        pnlHeadEditType.setLayout(pnlHeadEditTypeLayout);
        pnlHeadEditTypeLayout.setHorizontalGroup(
            pnlHeadEditTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadEditTypeLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlHeadEditTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlHeadEditTypeLayout.createSequentialGroup()
                        .addComponent(btnTypeEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnTypeEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnTypeEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnTypePrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblHeadEditType))
                .addGap(490, 490, 490))
        );
        pnlHeadEditTypeLayout.setVerticalGroup(
            pnlHeadEditTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadEditTypeLayout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(pnlHeadEditTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnTypePrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlHeadEditTypeLayout.createSequentialGroup()
                        .addComponent(lblHeadEditType)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlHeadEditTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btnTypeEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnTypeEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnTypeEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        add(pnlHeadEditType, java.awt.BorderLayout.PAGE_START);

        lblTyCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblTyCode.setText("รหัสประเภทสินค้า :");

        txtTyCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txtTyCode.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtTyCodeActionPerformed(evt);
            }
        });

        lblTyName.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblTyName.setText("ชื่อประเภทสินค้า :");

        txtTyName.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txtTyName.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtTyNameActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout PnlEditTypeLayout = new javax.swing.GroupLayout(PnlEditType);
        PnlEditType.setLayout(PnlEditTypeLayout);
        PnlEditTypeLayout.setHorizontalGroup(
            PnlEditTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PnlEditTypeLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(PnlEditTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(PnlEditTypeLayout.createSequentialGroup()
                        .addComponent(lblTyCode)
                        .addGap(20, 20, 20))
                    .addGroup(PnlEditTypeLayout.createSequentialGroup()
                        .addComponent(lblTyName)
                        .addGap(18, 18, 18)))
                .addGroup(PnlEditTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtTyName)
                    .addComponent(txtTyCode, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(399, 399, 399))
        );
        PnlEditTypeLayout.setVerticalGroup(
            PnlEditTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PnlEditTypeLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(PnlEditTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtTyCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblTyCode))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PnlEditTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtTyName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblTyName))
                .addContainerGap(352, Short.MAX_VALUE))
        );

        add(PnlEditType, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

    private void txtTyCodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtTyCodeActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txtTyCodeActionPerformed

    private void txtTyNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtTyNameActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txtTyNameActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel PnlEditType;
    private javax.swing.JButton btnTypeEditCancel;
    private javax.swing.JButton btnTypeEditDel;
    private javax.swing.JButton btnTypeEditSave;
    private javax.swing.JButton btnTypePrint;
    private javax.swing.JLabel lblHeadEditType;
    private javax.swing.JLabel lblTyCode;
    private javax.swing.JLabel lblTyName;
    private javax.swing.JPanel pnlHeadEditType;
    private javax.swing.JTextField txtTyCode;
    private javax.swing.JTextField txtTyName;
    // End of variables declaration//GEN-END:variables

}
